package com.baosight.risk.mapper.rire;

import com.baosight.risk.base.entity.MultipleUpdateStatus;
import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.rire.entity.RireRiskEvent;
import com.baosight.risk.service.rire.vo.RireRiskEventVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface RireRiskEventMapper extends BaseMapper<RireRiskEvent> {
    /**
     * 根据披露报告查询所有风险指标
     *
     * @param importReportGuid
     * @return
     */
    List<RireRiskEvent> getEventByImportId(@Param("importReportGuid") String importReportGuid);

    /**
     * 根据重点风险删除所有风险指标
     *
     * @param importReportGuid
     * @return
     */
    Integer deleteByImportId(@Param("importReportGuid") String importReportGuid);

    /**
     * 查询风险事件列表
     *
     * @return
     */
    List<RireRiskEvent> selectList(@Param("event") RireRiskEventVO rireRiskEventVO);

    List<RireRiskEvent> checkEventList(@Param("event") RireRiskEvent rireRiskEvent);

    void deleteByIds(@Param("updateStatus") MultipleUpdateStatus updateStatus);

    Integer getCountByImportReportGuid(@Param("importReportGuid") String importReportGuid);


    Integer updateAuditDate(@Param("id") String id,@Param("auditDate") Date auditDate);
    /**
     * 汇总导出披露报告用
     *
     * @param reportIds
     * @return
     */
    List<RireRiskEvent> queryByReportIds(@Param("reportIds") List<String> reportIds);


    List<RireRiskEvent> queryRiskEventData(@Param("event") RireRiskEventVO rireRiskEventVO);
}